package com.lottery.material.entity.portaluser;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Description：评论信息表
 * Created by 朱正磊 on 2019-04-09 10:28
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_comment_info")
public class CommentInfo extends BaseEntity {

    private static final long serialVersionUID = 9002568882427862222L;

    @Column(columnDefinition = "varchar(50) not null comment '用户id'")
    private String userId;

    @Column(columnDefinition = "int(11) not null comment '文章id'")
    private Integer articleId;

    @Column(columnDefinition = "int(5) default '0' comment '楼层'")
    private Integer floor;

    @Column(columnDefinition = "int(10) comment '点赞量'")
    private Integer giveLike;

    @Column(columnDefinition = "int(11) comment '被回复评论id'")
    private Integer beCommentId;

    @Column(columnDefinition = "int(5) comment '被回复楼层'")
    private Integer beFloor;

    @Column(columnDefinition = "int(11) comment '被回复用户id'")
    private Integer beUserId;

    @Column(columnDefinition = "varchar(20) comment '被回复用户昵称'")
    private String beNickName;

    @Column(columnDefinition = "varchar(250) comment '楼层评论内容'")
    private String beCommentContent;

    @Column(columnDefinition = "varchar(250) comment '评论内容'")
    private String commentContent;

    @Column(columnDefinition = "int(1) default '1' comment '是否楼主（1：否；2：是）'")
    private Integer isLord;

    @Column(columnDefinition = "int(1) default '1' comment '是否删除（1：否；2：是）'")
    private Integer isDelete;

    @Column(columnDefinition = "varchar(250) comment '删除说明'")
    private String deleteExplain;

}
